var router = require('libs/router').router;
var pages = require('libs/pages');
var ItemMixin = require('mixins/item');
var libs = require('libs/libs');
var api = libs.api;


var bindEvent = function(){
    //此处各种dom 操作


};

var EmsLog = React.createClass({
    mixins: [ItemMixin],
    render:function(){
        return (
            <div className="exp_Log flex flex-v">
                <div className="flex-1 f-oTouch">
                    <div className="default_pd016 box-shadow">
                        <span>快递公司： 顺丰速运</span>
                        <span>快递编号： 1546554541445</span>
                        <span>收件人联系电话： 1354564646</span>
                    </div>
                    <div className="logBox box-shadow u-mt-15">
                        <h3>物流跟踪</h3>
                        <ul className="logList">
                            <li>
                                <i></i>
                                <p>完成扫描，大白管家已签收</p>
                                <span>2016-03-15 07:15:15</span>
                            </li>
                            <li>
                                <i></i>
                                <p>快递公司已取件</p>
                                <span>2016-03-15 07:15:15</span>
                            </li>
                            <li>
                                <i></i>
                                <p>通知快递公司取件</p>
                                <span>2016-03-15 07:15:15</span>
                            </li>
                        </ul>
                    </div>
                </div>
            </div>
        )
    }
});

function start(name){
    return pages.new({
        // goback: function(){
        //     router.cb = function(name){
        //         //WeixinJSBridge.call('closeWindow');
        //     }
        // },
        boot:function(){},
        trigger:function(){
            this.libs.changeTitle('快递寄件-物流信息');    //更改当前页面标题
        },
        main: function(){
            this.render(
                <EmsLog itemDefaultMethod={bindEvent} />,
                document.getElementById(name)
            )
        }
    })
}

module.exports = start;
